<%--
  Created by IntelliJ IDEA.
  User: 86131
  Date: 2021/8/22
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <!-- Bootstrap -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="js/jquery.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="js/bootstrap.min.js"></script>

    <title>查询结果</title>
    <style>
        .paddtop{
            padding-top: 5px;
        }
        .search-input{
            float:left;
            border:2px dodgerblue solid;
            width: 400px;
            height: 35px;
            padding-left: 5px;
            margin-top: 5px;
            margin-left: 60px;
        }
        .search-btn{
            float:left;
            border: 1px dodgerblue solid;
            width: 90px;
            height: 35px;
            background-color: dodgerblue;
            text-align: center;
            line-height: 35px;
            color: white;
            margin-top: 5px;
        }
        .login{
            margin-top: 12px;

        }
        .gn{
            border-bottom: 2px dodgerblue solid;
        }
        .query{
            border: 1px darkgray solid ;
        }
        .padleft{
            padding-left: 100px;
        }
        .cha{
            padding-top: 5px;
        }
        .foot{
            background-color:dodgerblue ;
            text-align: center;
            height: 35px;
            line-height: 35px;
            color: white;
        }

    </style>
</head>
<body>
<%--乘客信息查询表格--%>
    <div class="container">
        <h3>乘客信息查询如下</h3>
        <table class="table table-hover">
<%--            表格头--%>
            <tr class="success">
                <th>编号</th>
                <th>身份证号</th>
                <th>姓名</th>
                <th>昵称</th>
            </tr>

<%--    获取 到的真实数据--%>
            <c:forEach items="${passengers}" var="passenger" varStatus="s">
                <tr>
                    <td>${s.count}</td>
                    <td>${passenger.id}</td>
                    <td>${passenger.userName}</td>
                    <td>${passenger.nickName}</td>
                </tr>
            </c:forEach>
        </table>
    </div>
</body>
</html>
